package App;

import DataAccessObject.entity.*;

public class App {

	public static void main(String[] args) throws Exception {
	  // Alumno
    AlumnoDAO alumno = new AlumnoDAO();
    System.out.println(alumno.insert(11111111, "Anthony", "1987-10-04"));
    System.out.println(alumno.findById(11111111));
    //System.out.println(alumno.delete(11111111));

    // Asignatura
    AsignaturaDAO asignatura = new AsignaturaDAO();
    System.out.println(asignatura.insert(2222, "IA", "ISA", 10.5));
    System.out.println(asignatura.findById(2222));
    //System.out.println(asignatura.delete(2222));

    //*
    // Matricula
    MatriculaDAO matricula = new MatriculaDAO();
    System.out.println(matricula.insert(11111111, 2222, "2012/2013"));
    System.out.println(matricula.findById(11111111, 2222, "2012/2013"));
    System.out.println(matricula.insert(11111111, 2222, "2013/2014"));
    //*/

    System.out.println("Finished.");
	}// main

}// class App
